package net.sh.dpinfrastructure.support.spring.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import net.sh.dpinfrastructure.support.global.DPIDGenerateService;
import net.sh.dpinfrastructure.support.global.DPIDGenerateServiceUseRedis;
import redis.clients.jedis.JedisPool;

/**
 * 
 * 基础设施服务类配置类
 * 
 * @version 1.0
 * @since JDK1.7
 * @author shaohui
 * @company 上海朝阳永续信息技术有限公司
 * @copyright (c) 2016 SunTime Co'Ltd Inc. All rights reserved.
 * @date 2016年8月8日 下午3:10:05
 */
@Configuration
@Import(DPRedisCacheConfiguration.class)
public class DPIDGenerateServiceUseRedisConfiguration {

    @Bean
    public DPIDGenerateService getDPIDGenerateUseRedisService(JedisPool jedisPool) {
        return new DPIDGenerateServiceUseRedis(jedisPool);
    }
    
}
